package com.tensquare.spit.repository;

import com.tensquare.spit.pojo.Spit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @program: tensquare_parent
 * @description: 数据交互层
 * @author: NieMiao
 * @create: 2018-12-26 16:54
 **/
public interface SpitRepository extends MongoRepository<Spit,String> {

    public Page<Spit> findByParentid(String id, Pageable pageable);

}
